<?php 
//wyznaczenie linka do sortowania (w razie braku pusty string)
$sortLink = '';
if ($this->sortColumn != null)
{
	$sortLink = '/sort/'.$this->sortColumn;	
}
?>

<div class="couponsBlock">
 <div class="couponsBanner">
  <table class="fullW fullH">
   <tr>
    <td class="couponsSearchBannerImage">
     <img src="<?php echo $this->baseUrl.'/public/images/arrow_o2o.png'; ?>" alt="" width="31px" height="24px"/>
    </td>
    <td class="couponsSearchBannerTitle">
     Kupony - wyniki wyszukiwania frazy "<?php echo $this->keywords; ?>"
    </td>
   </tr>
  </table>
 </div>
 <div class="couponsData">
 <?php 
   $messageText = 'Ilość znalezionych kuponów: ';
   echo $this->couponGrid($this->coupons, $this->baseUrl, '/Search/cquery/key/'.str_replace(' ', '+', $this->keywords), null, 0, $messageText); 
 ?>
 </div>
 <div class="couponNavigator">
  <table class="fullW">
   <tr>
    <td class="navigatorCell">
     <?php echo $this->dataPaging($this->pageNo, $this->coupons_cnt, $this->baseUrl, $this->sortColumn, null, '/Search/cquery/key/'.str_replace(' ', '+', $this->keywords)); ?>
    </td>
   </tr>
  </table>
 </div> 
</div> 